/// 用户信息更新对象
class UserUpdateObj {
  UserUpdateObj({
    this.avatarUrl,
    this.city,
    this.country,
    this.gender,
    this.latitude,
    this.longitude,
    this.nickName,
    this.description,
    this.province,
    this.region,
    this.registrationId,
  });

  String? avatarUrl;
  String? city;
  String? country;
  String? gender;
  double? latitude;
  double? longitude;
  String? nickName;
  String? description;
  String? province;
  String? region;
  String? registrationId;

  Map<String, dynamic> toJson() => <String, dynamic>{
        if (avatarUrl != null) 'avatarUrl': avatarUrl,
        if (city != null) 'city': city,
        if (country != null) 'country': country,
        if (gender != null) 'gender': gender,
        if (latitude != null) 'latitude': latitude,
        if (longitude != null) 'longitude': longitude,
        if (nickName != null) 'nickName': nickName,
        if (description != null) 'description': description,
        if (province != null) 'province': province,
        if (region != null) 'region': region,
        if (registrationId != null && registrationId!.isNotEmpty) 'registrationId': registrationId,
      };
}
